package com.yky.utils.jstree;

import java.util.ArrayList;
import java.util.List;

public class JsTreeNode {

	private JsTreeNodeAttr attr;
	private JsTreeNodeData data;
	private List<JsTreeNode> children = new ArrayList<JsTreeNode>();

	private String state = "closed";// or "open", defaults to "closed"

	public JsTreeNodeAttr getAttr() {
		return attr;
	}

	public void setAttr(JsTreeNodeAttr attr) {
		this.attr = attr;
	}

	public JsTreeNodeData getData() {
		return data;
	}

	public void setData(JsTreeNodeData data) {
		this.data = data;
	}

	public List<JsTreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<JsTreeNode> children) {
		this.children = children;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

}
